package com.bsb.base.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class BsbOneExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private int pageIndex;

    private int pageSize;

    public BsbOneExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex=pageIndex;
    }

    public int getPageIndex() {
        return this.pageIndex;
    }

    public void setPageSize(int pageSize) {
        this.pageSize=pageSize;
    }

    public int getPageSize() {
        return this.pageSize;
    }

    public BsbOneExample(int pageIndex, int pageSize) {
        this();
        this.pageIndex=pageIndex;
        this.pageSize=pageSize;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUuidIsNull() {
            addCriterion("uuid is null");
            return (Criteria) this;
        }

        public Criteria andUuidIsNotNull() {
            addCriterion("uuid is not null");
            return (Criteria) this;
        }

        public Criteria andUuidEqualTo(String value) {
            addCriterion("uuid =", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotEqualTo(String value) {
            addCriterion("uuid <>", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidGreaterThan(String value) {
            addCriterion("uuid >", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidGreaterThanOrEqualTo(String value) {
            addCriterion("uuid >=", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLessThan(String value) {
            addCriterion("uuid <", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLessThanOrEqualTo(String value) {
            addCriterion("uuid <=", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLike(String value) {
            addCriterion("uuid like", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotLike(String value) {
            addCriterion("uuid not like", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidIn(List<String> values) {
            addCriterion("uuid in", values, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotIn(List<String> values) {
            addCriterion("uuid not in", values, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidBetween(String value1, String value2) {
            addCriterion("uuid between", value1, value2, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotBetween(String value1, String value2) {
            addCriterion("uuid not between", value1, value2, "uuid");
            return (Criteria) this;
        }

        public Criteria andPuserIdIsNull() {
            addCriterion("puserId is null");
            return (Criteria) this;
        }

        public Criteria andPuserIdIsNotNull() {
            addCriterion("puserId is not null");
            return (Criteria) this;
        }

        public Criteria andPuserIdEqualTo(String value) {
            addCriterion("puserId =", value, "puserId");
            return (Criteria) this;
        }

        public Criteria andPuserIdNotEqualTo(String value) {
            addCriterion("puserId <>", value, "puserId");
            return (Criteria) this;
        }

        public Criteria andPuserIdGreaterThan(String value) {
            addCriterion("puserId >", value, "puserId");
            return (Criteria) this;
        }

        public Criteria andPuserIdGreaterThanOrEqualTo(String value) {
            addCriterion("puserId >=", value, "puserId");
            return (Criteria) this;
        }

        public Criteria andPuserIdLessThan(String value) {
            addCriterion("puserId <", value, "puserId");
            return (Criteria) this;
        }

        public Criteria andPuserIdLessThanOrEqualTo(String value) {
            addCriterion("puserId <=", value, "puserId");
            return (Criteria) this;
        }

        public Criteria andPuserIdLike(String value) {
            addCriterion("puserId like", value, "puserId");
            return (Criteria) this;
        }

        public Criteria andPuserIdNotLike(String value) {
            addCriterion("puserId not like", value, "puserId");
            return (Criteria) this;
        }

        public Criteria andPuserIdIn(List<String> values) {
            addCriterion("puserId in", values, "puserId");
            return (Criteria) this;
        }

        public Criteria andPuserIdNotIn(List<String> values) {
            addCriterion("puserId not in", values, "puserId");
            return (Criteria) this;
        }

        public Criteria andPuserIdBetween(String value1, String value2) {
            addCriterion("puserId between", value1, value2, "puserId");
            return (Criteria) this;
        }

        public Criteria andPuserIdNotBetween(String value1, String value2) {
            addCriterion("puserId not between", value1, value2, "puserId");
            return (Criteria) this;
        }

        public Criteria andCuserIdIsNull() {
            addCriterion("cuserId is null");
            return (Criteria) this;
        }

        public Criteria andCuserIdIsNotNull() {
            addCriterion("cuserId is not null");
            return (Criteria) this;
        }

        public Criteria andCuserIdEqualTo(String value) {
            addCriterion("cuserId =", value, "cuserId");
            return (Criteria) this;
        }

        public Criteria andCuserIdNotEqualTo(String value) {
            addCriterion("cuserId <>", value, "cuserId");
            return (Criteria) this;
        }

        public Criteria andCuserIdGreaterThan(String value) {
            addCriterion("cuserId >", value, "cuserId");
            return (Criteria) this;
        }

        public Criteria andCuserIdGreaterThanOrEqualTo(String value) {
            addCriterion("cuserId >=", value, "cuserId");
            return (Criteria) this;
        }

        public Criteria andCuserIdLessThan(String value) {
            addCriterion("cuserId <", value, "cuserId");
            return (Criteria) this;
        }

        public Criteria andCuserIdLessThanOrEqualTo(String value) {
            addCriterion("cuserId <=", value, "cuserId");
            return (Criteria) this;
        }

        public Criteria andCuserIdLike(String value) {
            addCriterion("cuserId like", value, "cuserId");
            return (Criteria) this;
        }

        public Criteria andCuserIdNotLike(String value) {
            addCriterion("cuserId not like", value, "cuserId");
            return (Criteria) this;
        }

        public Criteria andCuserIdIn(List<String> values) {
            addCriterion("cuserId in", values, "cuserId");
            return (Criteria) this;
        }

        public Criteria andCuserIdNotIn(List<String> values) {
            addCriterion("cuserId not in", values, "cuserId");
            return (Criteria) this;
        }

        public Criteria andCuserIdBetween(String value1, String value2) {
            addCriterion("cuserId between", value1, value2, "cuserId");
            return (Criteria) this;
        }

        public Criteria andCuserIdNotBetween(String value1, String value2) {
            addCriterion("cuserId not between", value1, value2, "cuserId");
            return (Criteria) this;
        }

        public Criteria andQuestionIsNull() {
            addCriterion("question is null");
            return (Criteria) this;
        }

        public Criteria andQuestionIsNotNull() {
            addCriterion("question is not null");
            return (Criteria) this;
        }

        public Criteria andQuestionEqualTo(String value) {
            addCriterion("question =", value, "question");
            return (Criteria) this;
        }

        public Criteria andQuestionNotEqualTo(String value) {
            addCriterion("question <>", value, "question");
            return (Criteria) this;
        }

        public Criteria andQuestionGreaterThan(String value) {
            addCriterion("question >", value, "question");
            return (Criteria) this;
        }

        public Criteria andQuestionGreaterThanOrEqualTo(String value) {
            addCriterion("question >=", value, "question");
            return (Criteria) this;
        }

        public Criteria andQuestionLessThan(String value) {
            addCriterion("question <", value, "question");
            return (Criteria) this;
        }

        public Criteria andQuestionLessThanOrEqualTo(String value) {
            addCriterion("question <=", value, "question");
            return (Criteria) this;
        }

        public Criteria andQuestionLike(String value) {
            addCriterion("question like", value, "question");
            return (Criteria) this;
        }

        public Criteria andQuestionNotLike(String value) {
            addCriterion("question not like", value, "question");
            return (Criteria) this;
        }

        public Criteria andQuestionIn(List<String> values) {
            addCriterion("question in", values, "question");
            return (Criteria) this;
        }

        public Criteria andQuestionNotIn(List<String> values) {
            addCriterion("question not in", values, "question");
            return (Criteria) this;
        }

        public Criteria andQuestionBetween(String value1, String value2) {
            addCriterion("question between", value1, value2, "question");
            return (Criteria) this;
        }

        public Criteria andQuestionNotBetween(String value1, String value2) {
            addCriterion("question not between", value1, value2, "question");
            return (Criteria) this;
        }

        public Criteria andAnswerIsNull() {
            addCriterion("answer is null");
            return (Criteria) this;
        }

        public Criteria andAnswerIsNotNull() {
            addCriterion("answer is not null");
            return (Criteria) this;
        }

        public Criteria andAnswerEqualTo(String value) {
            addCriterion("answer =", value, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerNotEqualTo(String value) {
            addCriterion("answer <>", value, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerGreaterThan(String value) {
            addCriterion("answer >", value, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerGreaterThanOrEqualTo(String value) {
            addCriterion("answer >=", value, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerLessThan(String value) {
            addCriterion("answer <", value, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerLessThanOrEqualTo(String value) {
            addCriterion("answer <=", value, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerLike(String value) {
            addCriterion("answer like", value, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerNotLike(String value) {
            addCriterion("answer not like", value, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerIn(List<String> values) {
            addCriterion("answer in", values, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerNotIn(List<String> values) {
            addCriterion("answer not in", values, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerBetween(String value1, String value2) {
            addCriterion("answer between", value1, value2, "answer");
            return (Criteria) this;
        }

        public Criteria andAnswerNotBetween(String value1, String value2) {
            addCriterion("answer not between", value1, value2, "answer");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNull() {
            addCriterion("createDate is null");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNotNull() {
            addCriterion("createDate is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDateEqualTo(Date value) {
            addCriterion("createDate =", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotEqualTo(Date value) {
            addCriterion("createDate <>", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThan(Date value) {
            addCriterion("createDate >", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("createDate >=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThan(Date value) {
            addCriterion("createDate <", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("createDate <=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateIn(List<Date> values) {
            addCriterion("createDate in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotIn(List<Date> values) {
            addCriterion("createDate not in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateBetween(Date value1, Date value2) {
            addCriterion("createDate between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("createDate not between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andEndDateIsNull() {
            addCriterion("endDate is null");
            return (Criteria) this;
        }

        public Criteria andEndDateIsNotNull() {
            addCriterion("endDate is not null");
            return (Criteria) this;
        }

        public Criteria andEndDateEqualTo(Date value) {
            addCriterion("endDate =", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateNotEqualTo(Date value) {
            addCriterion("endDate <>", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateGreaterThan(Date value) {
            addCriterion("endDate >", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateGreaterThanOrEqualTo(Date value) {
            addCriterion("endDate >=", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateLessThan(Date value) {
            addCriterion("endDate <", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateLessThanOrEqualTo(Date value) {
            addCriterion("endDate <=", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateIn(List<Date> values) {
            addCriterion("endDate in", values, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateNotIn(List<Date> values) {
            addCriterion("endDate not in", values, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateBetween(Date value1, Date value2) {
            addCriterion("endDate between", value1, value2, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateNotBetween(Date value1, Date value2) {
            addCriterion("endDate not between", value1, value2, "endDate");
            return (Criteria) this;
        }

        public Criteria andAnsDateIsNull() {
            addCriterion("ansDate is null");
            return (Criteria) this;
        }

        public Criteria andAnsDateIsNotNull() {
            addCriterion("ansDate is not null");
            return (Criteria) this;
        }

        public Criteria andAnsDateEqualTo(Date value) {
            addCriterion("ansDate =", value, "ansDate");
            return (Criteria) this;
        }

        public Criteria andAnsDateNotEqualTo(Date value) {
            addCriterion("ansDate <>", value, "ansDate");
            return (Criteria) this;
        }

        public Criteria andAnsDateGreaterThan(Date value) {
            addCriterion("ansDate >", value, "ansDate");
            return (Criteria) this;
        }

        public Criteria andAnsDateGreaterThanOrEqualTo(Date value) {
            addCriterion("ansDate >=", value, "ansDate");
            return (Criteria) this;
        }

        public Criteria andAnsDateLessThan(Date value) {
            addCriterion("ansDate <", value, "ansDate");
            return (Criteria) this;
        }

        public Criteria andAnsDateLessThanOrEqualTo(Date value) {
            addCriterion("ansDate <=", value, "ansDate");
            return (Criteria) this;
        }

        public Criteria andAnsDateIn(List<Date> values) {
            addCriterion("ansDate in", values, "ansDate");
            return (Criteria) this;
        }

        public Criteria andAnsDateNotIn(List<Date> values) {
            addCriterion("ansDate not in", values, "ansDate");
            return (Criteria) this;
        }

        public Criteria andAnsDateBetween(Date value1, Date value2) {
            addCriterion("ansDate between", value1, value2, "ansDate");
            return (Criteria) this;
        }

        public Criteria andAnsDateNotBetween(Date value1, Date value2) {
            addCriterion("ansDate not between", value1, value2, "ansDate");
            return (Criteria) this;
        }

        public Criteria andImgsIsNull() {
            addCriterion("imgs is null");
            return (Criteria) this;
        }

        public Criteria andImgsIsNotNull() {
            addCriterion("imgs is not null");
            return (Criteria) this;
        }

        public Criteria andImgsEqualTo(String value) {
            addCriterion("imgs =", value, "imgs");
            return (Criteria) this;
        }

        public Criteria andImgsNotEqualTo(String value) {
            addCriterion("imgs <>", value, "imgs");
            return (Criteria) this;
        }

        public Criteria andImgsGreaterThan(String value) {
            addCriterion("imgs >", value, "imgs");
            return (Criteria) this;
        }

        public Criteria andImgsGreaterThanOrEqualTo(String value) {
            addCriterion("imgs >=", value, "imgs");
            return (Criteria) this;
        }

        public Criteria andImgsLessThan(String value) {
            addCriterion("imgs <", value, "imgs");
            return (Criteria) this;
        }

        public Criteria andImgsLessThanOrEqualTo(String value) {
            addCriterion("imgs <=", value, "imgs");
            return (Criteria) this;
        }

        public Criteria andImgsLike(String value) {
            addCriterion("imgs like", value, "imgs");
            return (Criteria) this;
        }

        public Criteria andImgsNotLike(String value) {
            addCriterion("imgs not like", value, "imgs");
            return (Criteria) this;
        }

        public Criteria andImgsIn(List<String> values) {
            addCriterion("imgs in", values, "imgs");
            return (Criteria) this;
        }

        public Criteria andImgsNotIn(List<String> values) {
            addCriterion("imgs not in", values, "imgs");
            return (Criteria) this;
        }

        public Criteria andImgsBetween(String value1, String value2) {
            addCriterion("imgs between", value1, value2, "imgs");
            return (Criteria) this;
        }

        public Criteria andImgsNotBetween(String value1, String value2) {
            addCriterion("imgs not between", value1, value2, "imgs");
            return (Criteria) this;
        }

        public Criteria andPriceIsNull() {
            addCriterion("price is null");
            return (Criteria) this;
        }

        public Criteria andPriceIsNotNull() {
            addCriterion("price is not null");
            return (Criteria) this;
        }

        public Criteria andPriceEqualTo(Double value) {
            addCriterion("price =", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotEqualTo(Double value) {
            addCriterion("price <>", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThan(Double value) {
            addCriterion("price >", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThanOrEqualTo(Double value) {
            addCriterion("price >=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThan(Double value) {
            addCriterion("price <", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThanOrEqualTo(Double value) {
            addCriterion("price <=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceIn(List<Double> values) {
            addCriterion("price in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotIn(List<Double> values) {
            addCriterion("price not in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceBetween(Double value1, Double value2) {
            addCriterion("price between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotBetween(Double value1, Double value2) {
            addCriterion("price not between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andIsPayIsNull() {
            addCriterion("isPay is null");
            return (Criteria) this;
        }

        public Criteria andIsPayIsNotNull() {
            addCriterion("isPay is not null");
            return (Criteria) this;
        }

        public Criteria andIsPayEqualTo(String value) {
            addCriterion("isPay =", value, "isPay");
            return (Criteria) this;
        }

        public Criteria andIsPayNotEqualTo(String value) {
            addCriterion("isPay <>", value, "isPay");
            return (Criteria) this;
        }

        public Criteria andIsPayGreaterThan(String value) {
            addCriterion("isPay >", value, "isPay");
            return (Criteria) this;
        }

        public Criteria andIsPayGreaterThanOrEqualTo(String value) {
            addCriterion("isPay >=", value, "isPay");
            return (Criteria) this;
        }

        public Criteria andIsPayLessThan(String value) {
            addCriterion("isPay <", value, "isPay");
            return (Criteria) this;
        }

        public Criteria andIsPayLessThanOrEqualTo(String value) {
            addCriterion("isPay <=", value, "isPay");
            return (Criteria) this;
        }

        public Criteria andIsPayLike(String value) {
            addCriterion("isPay like", value, "isPay");
            return (Criteria) this;
        }

        public Criteria andIsPayNotLike(String value) {
            addCriterion("isPay not like", value, "isPay");
            return (Criteria) this;
        }

        public Criteria andIsPayIn(List<String> values) {
            addCriterion("isPay in", values, "isPay");
            return (Criteria) this;
        }

        public Criteria andIsPayNotIn(List<String> values) {
            addCriterion("isPay not in", values, "isPay");
            return (Criteria) this;
        }

        public Criteria andIsPayBetween(String value1, String value2) {
            addCriterion("isPay between", value1, value2, "isPay");
            return (Criteria) this;
        }

        public Criteria andIsPayNotBetween(String value1, String value2) {
            addCriterion("isPay not between", value1, value2, "isPay");
            return (Criteria) this;
        }

        public Criteria andPayTypeIsNull() {
            addCriterion("payType is null");
            return (Criteria) this;
        }

        public Criteria andPayTypeIsNotNull() {
            addCriterion("payType is not null");
            return (Criteria) this;
        }

        public Criteria andPayTypeEqualTo(String value) {
            addCriterion("payType =", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeNotEqualTo(String value) {
            addCriterion("payType <>", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeGreaterThan(String value) {
            addCriterion("payType >", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeGreaterThanOrEqualTo(String value) {
            addCriterion("payType >=", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeLessThan(String value) {
            addCriterion("payType <", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeLessThanOrEqualTo(String value) {
            addCriterion("payType <=", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeLike(String value) {
            addCriterion("payType like", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeNotLike(String value) {
            addCriterion("payType not like", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeIn(List<String> values) {
            addCriterion("payType in", values, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeNotIn(List<String> values) {
            addCriterion("payType not in", values, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeBetween(String value1, String value2) {
            addCriterion("payType between", value1, value2, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeNotBetween(String value1, String value2) {
            addCriterion("payType not between", value1, value2, "payType");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLike(String value) {
            addCriterion("status like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotLike(String value) {
            addCriterion("status not like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<String> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<String> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andDelFlagIsNull() {
            addCriterion("delFlag is null");
            return (Criteria) this;
        }

        public Criteria andDelFlagIsNotNull() {
            addCriterion("delFlag is not null");
            return (Criteria) this;
        }

        public Criteria andDelFlagEqualTo(String value) {
            addCriterion("delFlag =", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagNotEqualTo(String value) {
            addCriterion("delFlag <>", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagGreaterThan(String value) {
            addCriterion("delFlag >", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagGreaterThanOrEqualTo(String value) {
            addCriterion("delFlag >=", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagLessThan(String value) {
            addCriterion("delFlag <", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagLessThanOrEqualTo(String value) {
            addCriterion("delFlag <=", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagLike(String value) {
            addCriterion("delFlag like", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagNotLike(String value) {
            addCriterion("delFlag not like", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagIn(List<String> values) {
            addCriterion("delFlag in", values, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagNotIn(List<String> values) {
            addCriterion("delFlag not in", values, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagBetween(String value1, String value2) {
            addCriterion("delFlag between", value1, value2, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagNotBetween(String value1, String value2) {
            addCriterion("delFlag not between", value1, value2, "delFlag");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("updateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("updateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("updateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("updateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("updateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("updateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("updateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("updateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("updateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("updateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("updateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("updateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andFirstAskedIsNull() {
            addCriterion("firstAsked is null");
            return (Criteria) this;
        }

        public Criteria andFirstAskedIsNotNull() {
            addCriterion("firstAsked is not null");
            return (Criteria) this;
        }

        public Criteria andFirstAskedEqualTo(String value) {
            addCriterion("firstAsked =", value, "firstAsked");
            return (Criteria) this;
        }

        public Criteria andFirstAskedNotEqualTo(String value) {
            addCriterion("firstAsked <>", value, "firstAsked");
            return (Criteria) this;
        }

        public Criteria andFirstAskedGreaterThan(String value) {
            addCriterion("firstAsked >", value, "firstAsked");
            return (Criteria) this;
        }

        public Criteria andFirstAskedGreaterThanOrEqualTo(String value) {
            addCriterion("firstAsked >=", value, "firstAsked");
            return (Criteria) this;
        }

        public Criteria andFirstAskedLessThan(String value) {
            addCriterion("firstAsked <", value, "firstAsked");
            return (Criteria) this;
        }

        public Criteria andFirstAskedLessThanOrEqualTo(String value) {
            addCriterion("firstAsked <=", value, "firstAsked");
            return (Criteria) this;
        }

        public Criteria andFirstAskedLike(String value) {
            addCriterion("firstAsked like", value, "firstAsked");
            return (Criteria) this;
        }

        public Criteria andFirstAskedNotLike(String value) {
            addCriterion("firstAsked not like", value, "firstAsked");
            return (Criteria) this;
        }

        public Criteria andFirstAskedIn(List<String> values) {
            addCriterion("firstAsked in", values, "firstAsked");
            return (Criteria) this;
        }

        public Criteria andFirstAskedNotIn(List<String> values) {
            addCriterion("firstAsked not in", values, "firstAsked");
            return (Criteria) this;
        }

        public Criteria andFirstAskedBetween(String value1, String value2) {
            addCriterion("firstAsked between", value1, value2, "firstAsked");
            return (Criteria) this;
        }

        public Criteria andFirstAskedNotBetween(String value1, String value2) {
            addCriterion("firstAsked not between", value1, value2, "firstAsked");
            return (Criteria) this;
        }

        public Criteria andFirstAnswerIsNull() {
            addCriterion("firstAnswer is null");
            return (Criteria) this;
        }

        public Criteria andFirstAnswerIsNotNull() {
            addCriterion("firstAnswer is not null");
            return (Criteria) this;
        }

        public Criteria andFirstAnswerEqualTo(String value) {
            addCriterion("firstAnswer =", value, "firstAnswer");
            return (Criteria) this;
        }

        public Criteria andFirstAnswerNotEqualTo(String value) {
            addCriterion("firstAnswer <>", value, "firstAnswer");
            return (Criteria) this;
        }

        public Criteria andFirstAnswerGreaterThan(String value) {
            addCriterion("firstAnswer >", value, "firstAnswer");
            return (Criteria) this;
        }

        public Criteria andFirstAnswerGreaterThanOrEqualTo(String value) {
            addCriterion("firstAnswer >=", value, "firstAnswer");
            return (Criteria) this;
        }

        public Criteria andFirstAnswerLessThan(String value) {
            addCriterion("firstAnswer <", value, "firstAnswer");
            return (Criteria) this;
        }

        public Criteria andFirstAnswerLessThanOrEqualTo(String value) {
            addCriterion("firstAnswer <=", value, "firstAnswer");
            return (Criteria) this;
        }

        public Criteria andFirstAnswerLike(String value) {
            addCriterion("firstAnswer like", value, "firstAnswer");
            return (Criteria) this;
        }

        public Criteria andFirstAnswerNotLike(String value) {
            addCriterion("firstAnswer not like", value, "firstAnswer");
            return (Criteria) this;
        }

        public Criteria andFirstAnswerIn(List<String> values) {
            addCriterion("firstAnswer in", values, "firstAnswer");
            return (Criteria) this;
        }

        public Criteria andFirstAnswerNotIn(List<String> values) {
            addCriterion("firstAnswer not in", values, "firstAnswer");
            return (Criteria) this;
        }

        public Criteria andFirstAnswerBetween(String value1, String value2) {
            addCriterion("firstAnswer between", value1, value2, "firstAnswer");
            return (Criteria) this;
        }

        public Criteria andFirstAnswerNotBetween(String value1, String value2) {
            addCriterion("firstAnswer not between", value1, value2, "firstAnswer");
            return (Criteria) this;
        }

        public Criteria andSecondAskedIsNull() {
            addCriterion("secondAsked is null");
            return (Criteria) this;
        }

        public Criteria andSecondAskedIsNotNull() {
            addCriterion("secondAsked is not null");
            return (Criteria) this;
        }

        public Criteria andSecondAskedEqualTo(String value) {
            addCriterion("secondAsked =", value, "secondAsked");
            return (Criteria) this;
        }

        public Criteria andSecondAskedNotEqualTo(String value) {
            addCriterion("secondAsked <>", value, "secondAsked");
            return (Criteria) this;
        }

        public Criteria andSecondAskedGreaterThan(String value) {
            addCriterion("secondAsked >", value, "secondAsked");
            return (Criteria) this;
        }

        public Criteria andSecondAskedGreaterThanOrEqualTo(String value) {
            addCriterion("secondAsked >=", value, "secondAsked");
            return (Criteria) this;
        }

        public Criteria andSecondAskedLessThan(String value) {
            addCriterion("secondAsked <", value, "secondAsked");
            return (Criteria) this;
        }

        public Criteria andSecondAskedLessThanOrEqualTo(String value) {
            addCriterion("secondAsked <=", value, "secondAsked");
            return (Criteria) this;
        }

        public Criteria andSecondAskedLike(String value) {
            addCriterion("secondAsked like", value, "secondAsked");
            return (Criteria) this;
        }

        public Criteria andSecondAskedNotLike(String value) {
            addCriterion("secondAsked not like", value, "secondAsked");
            return (Criteria) this;
        }

        public Criteria andSecondAskedIn(List<String> values) {
            addCriterion("secondAsked in", values, "secondAsked");
            return (Criteria) this;
        }

        public Criteria andSecondAskedNotIn(List<String> values) {
            addCriterion("secondAsked not in", values, "secondAsked");
            return (Criteria) this;
        }

        public Criteria andSecondAskedBetween(String value1, String value2) {
            addCriterion("secondAsked between", value1, value2, "secondAsked");
            return (Criteria) this;
        }

        public Criteria andSecondAskedNotBetween(String value1, String value2) {
            addCriterion("secondAsked not between", value1, value2, "secondAsked");
            return (Criteria) this;
        }

        public Criteria andSecondAnswerIsNull() {
            addCriterion("secondAnswer is null");
            return (Criteria) this;
        }

        public Criteria andSecondAnswerIsNotNull() {
            addCriterion("secondAnswer is not null");
            return (Criteria) this;
        }

        public Criteria andSecondAnswerEqualTo(String value) {
            addCriterion("secondAnswer =", value, "secondAnswer");
            return (Criteria) this;
        }

        public Criteria andSecondAnswerNotEqualTo(String value) {
            addCriterion("secondAnswer <>", value, "secondAnswer");
            return (Criteria) this;
        }

        public Criteria andSecondAnswerGreaterThan(String value) {
            addCriterion("secondAnswer >", value, "secondAnswer");
            return (Criteria) this;
        }

        public Criteria andSecondAnswerGreaterThanOrEqualTo(String value) {
            addCriterion("secondAnswer >=", value, "secondAnswer");
            return (Criteria) this;
        }

        public Criteria andSecondAnswerLessThan(String value) {
            addCriterion("secondAnswer <", value, "secondAnswer");
            return (Criteria) this;
        }

        public Criteria andSecondAnswerLessThanOrEqualTo(String value) {
            addCriterion("secondAnswer <=", value, "secondAnswer");
            return (Criteria) this;
        }

        public Criteria andSecondAnswerLike(String value) {
            addCriterion("secondAnswer like", value, "secondAnswer");
            return (Criteria) this;
        }

        public Criteria andSecondAnswerNotLike(String value) {
            addCriterion("secondAnswer not like", value, "secondAnswer");
            return (Criteria) this;
        }

        public Criteria andSecondAnswerIn(List<String> values) {
            addCriterion("secondAnswer in", values, "secondAnswer");
            return (Criteria) this;
        }

        public Criteria andSecondAnswerNotIn(List<String> values) {
            addCriterion("secondAnswer not in", values, "secondAnswer");
            return (Criteria) this;
        }

        public Criteria andSecondAnswerBetween(String value1, String value2) {
            addCriterion("secondAnswer between", value1, value2, "secondAnswer");
            return (Criteria) this;
        }

        public Criteria andSecondAnswerNotBetween(String value1, String value2) {
            addCriterion("secondAnswer not between", value1, value2, "secondAnswer");
            return (Criteria) this;
        }

        public Criteria andFirstAskTimeIsNull() {
            addCriterion("firstAskTime is null");
            return (Criteria) this;
        }

        public Criteria andFirstAskTimeIsNotNull() {
            addCriterion("firstAskTime is not null");
            return (Criteria) this;
        }

        public Criteria andFirstAskTimeEqualTo(Date value) {
            addCriterion("firstAskTime =", value, "firstAskTime");
            return (Criteria) this;
        }

        public Criteria andFirstAskTimeNotEqualTo(Date value) {
            addCriterion("firstAskTime <>", value, "firstAskTime");
            return (Criteria) this;
        }

        public Criteria andFirstAskTimeGreaterThan(Date value) {
            addCriterion("firstAskTime >", value, "firstAskTime");
            return (Criteria) this;
        }

        public Criteria andFirstAskTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("firstAskTime >=", value, "firstAskTime");
            return (Criteria) this;
        }

        public Criteria andFirstAskTimeLessThan(Date value) {
            addCriterion("firstAskTime <", value, "firstAskTime");
            return (Criteria) this;
        }

        public Criteria andFirstAskTimeLessThanOrEqualTo(Date value) {
            addCriterion("firstAskTime <=", value, "firstAskTime");
            return (Criteria) this;
        }

        public Criteria andFirstAskTimeIn(List<Date> values) {
            addCriterion("firstAskTime in", values, "firstAskTime");
            return (Criteria) this;
        }

        public Criteria andFirstAskTimeNotIn(List<Date> values) {
            addCriterion("firstAskTime not in", values, "firstAskTime");
            return (Criteria) this;
        }

        public Criteria andFirstAskTimeBetween(Date value1, Date value2) {
            addCriterion("firstAskTime between", value1, value2, "firstAskTime");
            return (Criteria) this;
        }

        public Criteria andFirstAskTimeNotBetween(Date value1, Date value2) {
            addCriterion("firstAskTime not between", value1, value2, "firstAskTime");
            return (Criteria) this;
        }

        public Criteria andFirstAskAnswerTimeIsNull() {
            addCriterion("firstAskAnswerTime is null");
            return (Criteria) this;
        }

        public Criteria andFirstAskAnswerTimeIsNotNull() {
            addCriterion("firstAskAnswerTime is not null");
            return (Criteria) this;
        }

        public Criteria andFirstAskAnswerTimeEqualTo(Date value) {
            addCriterion("firstAskAnswerTime =", value, "firstAskAnswerTime");
            return (Criteria) this;
        }

        public Criteria andFirstAskAnswerTimeNotEqualTo(Date value) {
            addCriterion("firstAskAnswerTime <>", value, "firstAskAnswerTime");
            return (Criteria) this;
        }

        public Criteria andFirstAskAnswerTimeGreaterThan(Date value) {
            addCriterion("firstAskAnswerTime >", value, "firstAskAnswerTime");
            return (Criteria) this;
        }

        public Criteria andFirstAskAnswerTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("firstAskAnswerTime >=", value, "firstAskAnswerTime");
            return (Criteria) this;
        }

        public Criteria andFirstAskAnswerTimeLessThan(Date value) {
            addCriterion("firstAskAnswerTime <", value, "firstAskAnswerTime");
            return (Criteria) this;
        }

        public Criteria andFirstAskAnswerTimeLessThanOrEqualTo(Date value) {
            addCriterion("firstAskAnswerTime <=", value, "firstAskAnswerTime");
            return (Criteria) this;
        }

        public Criteria andFirstAskAnswerTimeIn(List<Date> values) {
            addCriterion("firstAskAnswerTime in", values, "firstAskAnswerTime");
            return (Criteria) this;
        }

        public Criteria andFirstAskAnswerTimeNotIn(List<Date> values) {
            addCriterion("firstAskAnswerTime not in", values, "firstAskAnswerTime");
            return (Criteria) this;
        }

        public Criteria andFirstAskAnswerTimeBetween(Date value1, Date value2) {
            addCriterion("firstAskAnswerTime between", value1, value2, "firstAskAnswerTime");
            return (Criteria) this;
        }

        public Criteria andFirstAskAnswerTimeNotBetween(Date value1, Date value2) {
            addCriterion("firstAskAnswerTime not between", value1, value2, "firstAskAnswerTime");
            return (Criteria) this;
        }

        public Criteria andSecondAskTimeIsNull() {
            addCriterion("secondAskTime is null");
            return (Criteria) this;
        }

        public Criteria andSecondAskTimeIsNotNull() {
            addCriterion("secondAskTime is not null");
            return (Criteria) this;
        }

        public Criteria andSecondAskTimeEqualTo(Date value) {
            addCriterion("secondAskTime =", value, "secondAskTime");
            return (Criteria) this;
        }

        public Criteria andSecondAskTimeNotEqualTo(Date value) {
            addCriterion("secondAskTime <>", value, "secondAskTime");
            return (Criteria) this;
        }

        public Criteria andSecondAskTimeGreaterThan(Date value) {
            addCriterion("secondAskTime >", value, "secondAskTime");
            return (Criteria) this;
        }

        public Criteria andSecondAskTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("secondAskTime >=", value, "secondAskTime");
            return (Criteria) this;
        }

        public Criteria andSecondAskTimeLessThan(Date value) {
            addCriterion("secondAskTime <", value, "secondAskTime");
            return (Criteria) this;
        }

        public Criteria andSecondAskTimeLessThanOrEqualTo(Date value) {
            addCriterion("secondAskTime <=", value, "secondAskTime");
            return (Criteria) this;
        }

        public Criteria andSecondAskTimeIn(List<Date> values) {
            addCriterion("secondAskTime in", values, "secondAskTime");
            return (Criteria) this;
        }

        public Criteria andSecondAskTimeNotIn(List<Date> values) {
            addCriterion("secondAskTime not in", values, "secondAskTime");
            return (Criteria) this;
        }

        public Criteria andSecondAskTimeBetween(Date value1, Date value2) {
            addCriterion("secondAskTime between", value1, value2, "secondAskTime");
            return (Criteria) this;
        }

        public Criteria andSecondAskTimeNotBetween(Date value1, Date value2) {
            addCriterion("secondAskTime not between", value1, value2, "secondAskTime");
            return (Criteria) this;
        }

        public Criteria andSecondAskAnswerTimeIsNull() {
            addCriterion("secondAskAnswerTime is null");
            return (Criteria) this;
        }

        public Criteria andSecondAskAnswerTimeIsNotNull() {
            addCriterion("secondAskAnswerTime is not null");
            return (Criteria) this;
        }

        public Criteria andSecondAskAnswerTimeEqualTo(Date value) {
            addCriterion("secondAskAnswerTime =", value, "secondAskAnswerTime");
            return (Criteria) this;
        }

        public Criteria andSecondAskAnswerTimeNotEqualTo(Date value) {
            addCriterion("secondAskAnswerTime <>", value, "secondAskAnswerTime");
            return (Criteria) this;
        }

        public Criteria andSecondAskAnswerTimeGreaterThan(Date value) {
            addCriterion("secondAskAnswerTime >", value, "secondAskAnswerTime");
            return (Criteria) this;
        }

        public Criteria andSecondAskAnswerTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("secondAskAnswerTime >=", value, "secondAskAnswerTime");
            return (Criteria) this;
        }

        public Criteria andSecondAskAnswerTimeLessThan(Date value) {
            addCriterion("secondAskAnswerTime <", value, "secondAskAnswerTime");
            return (Criteria) this;
        }

        public Criteria andSecondAskAnswerTimeLessThanOrEqualTo(Date value) {
            addCriterion("secondAskAnswerTime <=", value, "secondAskAnswerTime");
            return (Criteria) this;
        }

        public Criteria andSecondAskAnswerTimeIn(List<Date> values) {
            addCriterion("secondAskAnswerTime in", values, "secondAskAnswerTime");
            return (Criteria) this;
        }

        public Criteria andSecondAskAnswerTimeNotIn(List<Date> values) {
            addCriterion("secondAskAnswerTime not in", values, "secondAskAnswerTime");
            return (Criteria) this;
        }

        public Criteria andSecondAskAnswerTimeBetween(Date value1, Date value2) {
            addCriterion("secondAskAnswerTime between", value1, value2, "secondAskAnswerTime");
            return (Criteria) this;
        }

        public Criteria andSecondAskAnswerTimeNotBetween(Date value1, Date value2) {
            addCriterion("secondAskAnswerTime not between", value1, value2, "secondAskAnswerTime");
            return (Criteria) this;
        }

        public Criteria andFirmIdIsNull() {
            addCriterion("firmId is null");
            return (Criteria) this;
        }

        public Criteria andFirmIdIsNotNull() {
            addCriterion("firmId is not null");
            return (Criteria) this;
        }

        public Criteria andFirmIdEqualTo(Integer value) {
            addCriterion("firmId =", value, "firmId");
            return (Criteria) this;
        }

        public Criteria andFirmIdNotEqualTo(Integer value) {
            addCriterion("firmId <>", value, "firmId");
            return (Criteria) this;
        }

        public Criteria andFirmIdGreaterThan(Integer value) {
            addCriterion("firmId >", value, "firmId");
            return (Criteria) this;
        }

        public Criteria andFirmIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("firmId >=", value, "firmId");
            return (Criteria) this;
        }

        public Criteria andFirmIdLessThan(Integer value) {
            addCriterion("firmId <", value, "firmId");
            return (Criteria) this;
        }

        public Criteria andFirmIdLessThanOrEqualTo(Integer value) {
            addCriterion("firmId <=", value, "firmId");
            return (Criteria) this;
        }

        public Criteria andFirmIdIn(List<Integer> values) {
            addCriterion("firmId in", values, "firmId");
            return (Criteria) this;
        }

        public Criteria andFirmIdNotIn(List<Integer> values) {
            addCriterion("firmId not in", values, "firmId");
            return (Criteria) this;
        }

        public Criteria andFirmIdBetween(Integer value1, Integer value2) {
            addCriterion("firmId between", value1, value2, "firmId");
            return (Criteria) this;
        }

        public Criteria andFirmIdNotBetween(Integer value1, Integer value2) {
            addCriterion("firmId not between", value1, value2, "firmId");
            return (Criteria) this;
        }

        public Criteria andReasonIsNull() {
            addCriterion("reason is null");
            return (Criteria) this;
        }

        public Criteria andReasonIsNotNull() {
            addCriterion("reason is not null");
            return (Criteria) this;
        }

        public Criteria andReasonEqualTo(String value) {
            addCriterion("reason =", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonNotEqualTo(String value) {
            addCriterion("reason <>", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonGreaterThan(String value) {
            addCriterion("reason >", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonGreaterThanOrEqualTo(String value) {
            addCriterion("reason >=", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonLessThan(String value) {
            addCriterion("reason <", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonLessThanOrEqualTo(String value) {
            addCriterion("reason <=", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonLike(String value) {
            addCriterion("reason like", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonNotLike(String value) {
            addCriterion("reason not like", value, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonIn(List<String> values) {
            addCriterion("reason in", values, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonNotIn(List<String> values) {
            addCriterion("reason not in", values, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonBetween(String value1, String value2) {
            addCriterion("reason between", value1, value2, "reason");
            return (Criteria) this;
        }

        public Criteria andReasonNotBetween(String value1, String value2) {
            addCriterion("reason not between", value1, value2, "reason");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}